Skip to content

Conversation

@ArkadyRudenko
Copy link

@ArkadyRudenko ArkadyRudenko commented Aug 9, 2024

Note on forcing HTTP/2 to be enabled by disabling HTTP/1.1 for the client

issue: #3261

*and* the server need to support HTTP/2. If you connect to a server that only
supports HTTP/1.1 the client will use a standard HTTP/1.1 connection instead.

To force HTTP/2 to be enabled, disable HTTP/1.1. Otherwise, the client will try to use HTTP/1.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't correct. Here's the deal...

  • Default. http1=True, http2=False - HTTP/1.1 will be used.
  • HTTP/2 support enabled. http1=True, http2=True - Either HTTP/1.1 or HTTP/2 will be used. The protocol negotiation (ALPN) occurs during the SSL setup.
  • Force HTTP/2. http1=False, http2=True - HTTP/2 will be used, without negotiation. Not a typically useful configuration, tho allows HTTP/2 over plain HTTP.

@ArkadyRudenko ArkadyRudenko closed this by deleting the head repository Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants